﻿using UnityEngine.UI;

namespace Gp.Scripts.GUI {
    public class PanelStartScreen_WidgetPlayStory : PanelStartScreen_WidgetPlayStoryBase
    {
        protected override void OnEnter()
        {
            mWidgetPlayStory_Animator.Play("Panel In");
            mLoadSaveGroup_Animator.Play("Panel In");
        }

        protected override void OnExit()
        {
            mWidgetPlayStory_Animator.Play("Panel Out");
            mLoadSaveGroup_Animator.Play("Panel Out");
        }

        protected override void OnClicked(Button button)
        {
            if (button == mBtnClose_Button)
            {
                RemoveSelf();
            }
        }
    }
}